#ifndef _CPROGRESSBAR_H_
#define _CPROGRESSBAR_H_

#include <buola/widgets/cwidget.h>

namespace buola { namespace gui {

class CProgressBar : public CWidget
{
public:
    CProgressBar();
    virtual ~CProgressBar();

    virtual void GetPropertyNames(std::vector<std::string> &pNames);
    virtual void SetProperty(const std::string &p,const UAny&);

////////////// Event handling //////////////
    virtual void OnExpose(const CExposeEvent &pE);
	virtual void OnSize(const CGeometryEvent &pE);

public:
////////////////// interface //////////////////////
	void SetProgress(double);
	void SetProgress(int,int);
	double GetProgress()	{	return mProgress;	}

protected:
////////////// protected functions ////////////////

/////////////////// data //////////////////////
	double mProgress;	
};

/*namespace gui*/ } /*namespace buola*/ }

#endif
